package cn.lizemin.demo.thread.innerClass;

/**
 * @author: lizemin
 * @version: 1.0
 */
public class OuterClass {
    int age = 10;
    static int money = 20;
    public void say(){
        System.out.println("test...say");

    }
    static void jump(){
        System.out.println("test...jump");
//        InnerStatic innerStatic = new InnerStatic();
        //调用静态内部类的属性
//        System.out.println(innerStatic.age);
    }

    //静态内部类
    public static class InnerStatic{
        int age = 20;
        public void test(){
            money = 10;
            //静态内部类中只能访问外部类中被static修饰的属性
            jump();
            System.out.println(money);
        }

    }


}
